package com.koalac.ironman.common.adapter;

import java.util.List;
import java.util.Map;

import android.content.Context;

public abstract class ViewHolderModel<T> implements ViewHolderController {

	protected List<T> list;
	protected NotifyDataSetChanged notifyDataSetChanged;
	protected Map<String, Object> params;
	protected Callback<Object, Object> callback;
	protected Context context;

	public Callback<Object, Object> getCallback() {
		return callback;
	}

	public void setCallback(Callback<Object, Object> callback) {
		this.callback = callback;
	}

	public void setParams(Map<String, Object> params) {
		this.params = params;
	}

	public NotifyDataSetChanged getNotifyDataSetChanged() {
		return notifyDataSetChanged;
	}

	public void setNotifyDataSetChanged(NotifyDataSetChanged notifyDataSetChanged) {
		this.notifyDataSetChanged = notifyDataSetChanged;
	}

	public ViewHolderModel(Context context, List<T> list) {
		this.context = context;
		this.list = list;
	}
}